<?php
class AppController extends Controller {
	var $components = array('DebugKit.Toolbar','Session', 
							'Auth' => array(
											'userModel'      => 'Usuario', 
											'fields'         => array('password' => 'senha','username' => 'login'),
											//'authorize'      => 'actions',						
											'loginAction'    => array('controller' => 'usuarios', 'action' => 'login'),
											'loginRedirect' => array('controller' => 'usuarios', 'action' => 'perfil'),
											'logoutRedirect' => array('controller' => 'usuarios', 'action' => 'index'),
											)
							);
	function beforeFilter() {
        $this->Auth->allow('*');
	}
}

